"""
物品 | 业务层
"""

from biz.base_biz import ValidatorBase
from models.po import FamilyItemPO
from service import FamilyItemService


class Model:
    """ 模型信息 """

    ID_FIELD: str = "Item_id"
    NAME: str = "物品"
    PO = FamilyItemPO
    SERVICE = FamilyItemService


class FamilyItemValidator(ValidatorBase):
    """ 物品 | 校验器 """

    model_id_field = Model.ID_FIELD
    model_name = Model.NAME
    model_po = Model.PO
    model_service = Model.SERVICE
